package engine.systems.update.update
{
	import engine.classes.enumerations.SystemPriority;
	import engine.groups.Group;
	import engine.systems.update.GameSystem;
	
	public class UpdateSystem extends GameSystem
	{
		private var handler:Function;
		
		public function UpdateSystem()
		{
			super(UpdateNode, updateNode);
			
			this.priority = SystemPriority.UPDATE;
		}
		
		private function updateNode(node:UpdateNode, time:Number):void
		{
			node.update.handlers.dispatch(time);
		}
	}
}